package com.study.controller;

import com.study.common.ResponseMessage;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/userInfo")
public class UserController {

    @RequestMapping("/getMessage")
    public ResponseMessage getUserInfo(@RequestParam("username") String username){
        return ResponseMessage.ok(username);
    }
}
